<template>

  <div>
    <h1>我是爹</h1>
    <button v-bind="$attrs">子组件按钮{{ $attrs.size }}</button>
    <span>1{{ $attrs.type }}</span>
    <hr>
  </div>

</template>
<script setup lang="ts">
import Grandson from './Grandson.vue';
import { inject,useAttrs } from 'vue';
const $attrs = useAttrs()
console.log($attrs)

</script>
<style lang="scss" scoped>

</style>